/**
 * Created by Administrator on 2017/3/13.
 */
//var box = document.getElementsByClassName("carousel-inner");
//var imgs = document.getElementById("img1");
//var arrow = document.getElementById("arrow");
//var target = 0;
//var leader = 0;
//
//box.onmouseover = function () {
//    arrow.style.display = "block";
//};
//box.onmouseout = function () {
//    arrow.style.display = "none";
//};
//arrow.children[0].children[0].onclick = function () {
//    target = target + 490;
//};
//arrow.children[0].children[1].onclick = function () {
//    target = target - 490;
//};
//
//setInterval(function () {
//    if (target >= 0){
//        target = 0;
//    }
//    if (target <= -1960){
//        target = -1960;
//    }
//    leader = leader + (target - leader)/10;
//    imgs.style.left = leader + "px";
//},10);